package com.example.springstudy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class SkuCategory extends BaseEntity{
    private String name;
    private String code;
    private int parentId;

    @TableField(exist = false)
    private List<SkuCategory> children;
}
